package com.itheima.day07;

/*
创建一个标准类
1.用private去修饰限定成员变量
2.生成无参和有参构造方法
(注: 该方法没有返回值,也不用void修饰)
3.生成get/set方法(注意:this关键字)

 */

public  class People04 {


    private String name;
    private int age;

    public People04() {
    }

    public People04(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public  void  show(){
        System.out.println(name+"..."+age);
    }


}
